package com.linyf.design.prototype.shallow;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: linyf
 * @Description: TODO
 * @DateTime: 2023/3/31 10:38
 **/
public class ShallowCopy implements Cloneable{


    private List<String> array = new ArrayList<>();


    @Override
    protected ShallowCopy clone() throws CloneNotSupportedException {
        return (ShallowCopy) super.clone();
    }


    public List<String> getArray() {
        return array;
    }

    public void setArray(List<String> array) {
        this.array = array;
    }
}
